home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000167_news@newsmaster….columbia.edu _Sun May 31 16:10:09 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA26609
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 31 May 1998 16:10:07 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA12027
for kermit.misc@watsun; Sun, 31 May 1998 16:10:07 -0400 (EDT)
Path: news.columbia.edu!panix!howland.erols.net!newshub.northeast.verio.net!newsfeeder.servtech.com!post.servtech.com!hal9000.buf.servtech.com!spamguard!rchandra
From: rchandra.spamguard@spamguard.letter.com
Newsgroups: comp.protocols.kermit.misc
Subject: Re: accesing modem for users other than root?
Date: 31 May 1998 19:48:08 GMT
Organization: just by myself, connected through Verio New York
Lines: 62
Message-ID: <6ksc5o$8s9$1@post.servtech.com>
References: <6kmho4$6ic@portal.gmu.edu>
Reply-To: rchandra.spamguard@spamguard.letter.com
NNTP-Posting-Host: hal9000.buf.servtech.com
Originator: 0x804b6e8@0x804b560
Xref: news.columbia.edu comp.protocols.kermit.misc:8835
In article <6kmho4$6ic@portal.gmu.edu>,
Ravi Malghan <rmalghan@site.gmu.edu> wrote:
>Hi,
>I am using the C-Kermit to sent pages over a connected modem. I am able
>to send pages as a root. But when I try sending as any other user
>I get the following message
>
>===
>mgtserver% ./page_ravi 18885005136 1 536
>/var/spool/locks: Permission denied
>Sorry, access to lock denied: /dev/ttya
I personally would add some code to the script here along the lines
of:
if success goto next_step
write error set line failed\10
exit 1
:next_step
...but choose some meaningful label other than "next_step".
>?Sorry, you must SET LINE first
>Sorry, you must SET LINE or SET HOST first
>C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x
> Copyright (C) 1985, 1996,
> Trustees of Columbia University in the City of New York.
>Default file-transfer mode is TEXT
>Type ? or HELP for help.
>[/export/home/rmalghan/pager_softwares/C-Kermit] C-Kermit>
>
>======
>The permissions for the locks, term/a files are:
>
>drwxr-xr-x 2 uucp uucp 512 May 29 10:28 locks
>
>lrwxrwxrwx 1 root root 6 Feb 13 19:41 /dev/ttya -> term/a
>
>lrwxrwxrwx 1 root root 47 Feb 13 19:41 /dev/term/a -> ../../de
>vices/pci@1f,4000/ebus@1/se@14,400000:a
Kermit has a lot of code in it that deals with temporarily granting
permissions to perform certain operations. If your OS supports it (I
think Solaris does), your Kermit binary ("wermit"/"kermit") may be
built with such support, and if you make the group owner "uucp" and
set the "set group ID" bit (with the chmod command), and make the
locks directory group-writable, the lock will be able to be acquired.
Depending on other things going on with your system, you may be able
to make your modems group writable and make their group owner "uucp"
too. If that modem line is bidirectional, some login systems (getty
and friends) set up the device node (e.g., /dev/ttya) with a given
group, mode/permission bits, and so on, so setting it once may not be
sufficient. Also, even if that were so, getty/login usually makes the
logged in user the owner of the device, and therefore may change the
group owner and permissions of the device node.
Hope that works for you, and others with a similar setup.
--
Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
In the jungle, the silicon jungle, the process sleeps tonight.
Joe Philipps <rchandra-nospam@letter.com> http://www.servtech.com/~rchandra/
You know what you have to do to send email to me successfully :^)